package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum CommonTypeEnum {

    CONSUMER_TYPE_0(0, "普通客户"),
    CONSUMER_TYPE_1(1, "紫荆客户"),
    ;

    private final Object status;
    private final String name;

    public static String getStateName(Object status) {
        if (status == null) {
            return null;
        }
        for (CommonTypeEnum mbpStateEnum : CommonTypeEnum.values()) {
            if (mbpStateEnum.status.equals(status)) {
                return mbpStateEnum.name;
            }
        }
        return null;
}
}